home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Atari Mega Archive 1
/
Atari Mega Archive - Volume 1.iso
/
program
/
gemxx19.zoo
/
gem++19
/
example
/
makefile
< prev
next >
Wrap
Makefile
|
1993-11-21
|
712b
|
43 lines
LIBRARY=../lib/gem++.olb
INC=../include
SRC=
MAINSRC=example.cc acc.cc
PROGS=example.prg acc.acc
OBJ=$(subst .cc,.o,$(SRC))
LDLIBS=-lgem -lg++
LDFLAGS=
GXXINC:=$(INC),$(GXXINC)
C++FLAGS:=$(C++FLAGS) -O2
#C++FLAGS:=$(C++FLAGS) -Wall
current: example.prg
all: $(PROGS)
tfont: tfont.o $(LIBRARY)
$(LINK.o) $(LDFLAGS) $^ $(LDLIBS) -o $@
acc.acc: acc.o $(LIBRARY)
$(LINK.o) $(LDFLAGS) $^ $(LDLIBS) -o $@
example.prg: example.o $(LIBRARY)
$(LINK.o) $(LDFLAGS) $^ $(LDLIBS) -o $@
$(PROGS): $(OBJ)
clean:
rm $(OBJ) $(subst .cc,.o,$(MAINSRC))
clobber: clean
rm $(PROGS)
depend:
-$(CC) -M $(SRC) $(MAINSRC) >/tmp/make.123
sed 's/[a-z]:[^ ]*//g' /tmp/make.123 >depends
rm /tmp/make.123
include depends